<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript"
        src="https://webapi.amap.com/maps?v=1.4.15&key=b886fb12aa5e241d4af74e4fb90bee64"></script>
</head>

<body>
    <div id="conatiner" style="height: 500px; width: 500px;"></div>
    <!-- <script>
        var map = new AMap.Map('container', {
            zoom: 12,
            center: [116.39, 39.9]
        });
        AMap.plugin('AMap.ToolBar', function () {//异步加载插件
            var toolbar = new AMap.ToolBar();
            map.addControl(toolbar);
        });
    </script> -->
    <!-- 经纬度 AMap.LngLat -->
    <script>
        var position = new AMap.LngLat(116, 39);//标准写法

        var position = [116, 39]; //简写

        var map = new AMap.Map('conatiner', {
            center: position
        })
    </script>
</body>

</html>